<?php

class tyvoMvc {

	private $controller;
	private static $instance;
	private static $frameworkName = 'tyvo MVC framework';
	
	private function __construct() {
		require 'load.php';
		require 'model.php';
		require 'controller.php';
		$this->controller = new Controller(); 
	}
	
	public static function singleton() {
		if( !isset( self::$instance ) ) {
			$obj = __CLASS__;
			self::$instance = new $obj;
		}
		return self::$instance;
	}
	
	public function getController() {
		return $this->controller;
	}
}

?>